import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import path from "path";
import styleImport from "vite-plugin-style-import";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "src"),
      views: path.resolve(__dirname, "src/views"),
      comps: path.resolve(__dirname, "src/components"),
      styles: path.resolve(__dirname, "src/styles"),
      images: path.resolve(__dirname, "src/images"),
      utils: path.resolve(__dirname, "src/utils"),
      data: path.resolve(__dirname, "src/data"),
    },
  },
  base:"./",

  publicDir: 'assets',
  serve: {
    host: "0.0.0.0",
  },
  build:{
    outputDir: 'dist',
    assetsDir: 'assets',
    sourcemap: true,
  }
});
